.post-meta {
  margin-bottom: 1rem;
  color: variable('secondary-text-on-surface');
  font-size: .8rem;
  word-break: break-all;

  span {
    &:not(:last-child) {
      margin-right: .125rem;

      &::after {
        content: '·';
        margin-left: .125rem;
      }
    }
  }

  .post-taxonomy {
    padding: .25rem;
    padding-left: .5rem;
  }
}

.post-summary {
  color: variable('secondary-text-on-surface');
}

.related-posts {
  list-style: none;
  padding-left: 0.25rem;

  a {
    color: variable('accent');
  }
}

.post-meta,
.post-content {
  h1,
  .h1,
  h2,
  .h2,
  h3,
  .h3,
  h4,
  .h4,
  h5,
  .h5,
  h6,
  .h6 {
    margin: 2rem 0 1.5rem;
  }
}

.post-meta,
.post-summary,
.post-content,
.post-nav {
  a {
    color: variable('accent');
  }
}

.post-panel-wrapper {
  position: sticky;
  top: 84px;
  z-index: 1;

  .post-panel {
    position: absolute;
    text-align: right;
    right: -1rem;
    top: -0.5rem;
    margin-top: 8px;

    @include elevation(6);

    a {
      color: inherit;

      &:hover,
      &.active {
        color: variable('accent');
      }
    }

    .action {
      margin-top: 0.25rem;
      padding: .125rem .125rem .25rem;
      transition: opacity 1s ease-out;
      
      &:not(:last-child) {
        border-bottom: 1px #{$gray-500} solid;
      }
    }
      
    .action-panel-toggler {
      opacity: 0;
      display: none;
      border-bottom: none!important;
    }

    @include media-breakpoint-down(sm) {
      .action {
        opacity: 0;
        display: none;
      }
      
      .action-panel-toggler {
        opacity: 1;
        display: block;
      }

      &:hover, &:focus {
        .action {
          opacity: 1;
          display: block;
        }
      }
    }
  }
}

.post {
  position: relative;

  .post-title {
    margin: .5rem 0;
  }

  .post-toc {
    z-index: 1;

    ul {
      margin-bottom: 0;
    }

    &.position-sticky {
      top: 84px;
    }
  }
}

.post-taxonomy {
  background-color: variable('background');
  color: variable('primary-text-on-surface')!important;
  margin: .25rem;
  padding: .5rem;
  opacity: .6;
  clip-path: polygon(100% 0, 100% 100%, 1rem 100%, 0 50%, 1rem 0);
  padding-left: 1rem;

  @include elevation(2);

  &:hover {
    opacity: 1;
    color: variable('accent')!important;
    text-decoration: none;
  }
}

#offcanvasTOC {
  margin-bottom: 0;
}

.post-navs {
  flex-wrap: wrap;
}

.post-nav {
  margin: 0.25rem;
  display: flex;
  align-items: center;
}

.post-comments {
  .utterances {
    max-width: 100%;
  }
}

.post-reward-content {
  text-align: center;
}

.btn.btn-reward {
  color: var('on-primary');
  background-color: variable('accent');
}

#TableOfContents {
  color: var(--hbs-secondary-text-on-surface);

  ul li {
    a {
      color: inherit;
      font-weight: 400;

      &:hover {
        color: variable('accent');
      }
    }
  }
}

.post-list {
  margin: .25rem 0;
  color: var(--hbs-secondary-text-on-surface);
  list-style: none;
  padding-left: 0.25rem;
  
  li {
    padding: .25rem 0;
    clear: both;

    a {
      color: variable('secondary-text-on-surface');

      &:hover {
        color: variable('accent');
      }
    }
  }
}

.posts {
  .post {
    img {
      float: left;
      margin-right: 1rem;
      width: 180px;
      height: auto;
      padding-bottom: 0.125rem;
      max-height: 180px;
      object-fit: cover;
    }

    @include media-breakpoint-down(sm) {
      img {
        width: 100%;
        margin-bottom: 0.5rem;
      }
    }
  }
}

#postTOC {
  scroll-margin-top: 84px;
}
